home *** CD-ROM | disk | FTP | other *** search
/ Strategy Challenges Collection / Strategy Challenges Collection.iso / pc / demo / demodata / menu.dxr / 00159.ls < prev    next >
Encoding:
Text File  |  1996-10-02  |  735 b   |  27 lines

  1. on mouseDown
  2.   sound stop 1
  3.   sound stop 2
  4.   puppetSound("clickSound")
  5.   repeat while the stillDown
  6.     if not rollOver(clickOn()) then
  7.       set the castNum of sprite 8 to the number of member "SC_all_Up.PICT"
  8.       updateStage()
  9.       set vButtonHit to 0
  10.       next repeat
  11.     end if
  12.     set the castNum of sprite 8 to the number of member "SC2_DOWN.PICT"
  13.     updateStage()
  14.     set vButtonHit to 1
  15.   end repeat
  16.   puppetSound("clickSound")
  17.   if vButtonHit = 1 then
  18.     set the castNum of sprite 8 to the number of member "SC_all_Up.PICT"
  19.     updateStage()
  20.     set jumpName to the name of cast the castNum of sprite clickOn()
  21.     clearPuppets(2, 12)
  22.     go(the frame + 1)
  23.     puppetSound(0)
  24.     PlayDemoFrame(1, jumpName)
  25.   end if
  26. end
  27.